package com.neouton.crm.generalReceiptRecord.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neouton.crm.entity.SysUserEntity;
import com.neouton.crm.generalReceiptRecord.entity.GeneralReceiptRecord;
import com.neouton.crm.generalReceiptRecord.entity.GeneralReceiptTable;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GeneralReceiptMapper {


    void saveManagerReceiptRecord(@Param("vo") GeneralReceiptRecord managerReceiptRecord);

    IPage<GeneralReceiptRecord> queryManagerReceiptRecordsListInfo(@Param("page")IPage<GeneralReceiptRecord> page, @Param("entity") GeneralReceiptRecord managerReceiptRecord, @Param("userList")List<SysUserEntity> userList);

    List<GeneralReceiptRecord> queryManagerReceiptRecord(@Param("vo") GeneralReceiptRecord managerReceiptRecord);

    List<GeneralReceiptRecord> queryManagerReceiptRecordedMoneyHistory(@Param("vo") GeneralReceiptRecord managerReceiptRecord);

    GeneralReceiptRecord queryManagerReceiptRecordByID(@Param("receiptRecordsId")Integer managerReceiptRecordId);

    void updateManagerReceiptRecordById(@Param("vo") GeneralReceiptRecord entity);

    GeneralReceiptRecord queryManagerReceiptRecordHistory(Integer approvalId);

    List<GeneralReceiptRecord> queryReceiptRecordsListInfo(@Param("entity") GeneralReceiptRecord entity, @Param("userList")List<SysUserEntity> userList);

    Boolean deleteReceiptRecordById(Integer receiptRecordsId);

    void backUpManagerReceiptRecord(@Param("receiptRecordsId")Integer receiptRecordsId, @Param("backUserId")Integer userId);
}
